package com.acme.bankapp.domain.bank;

public class Bank {

	private Client[] clients;

	public Bank(Client[] clients) {
		this.clients = clients;
	}

	public Client[] getClients() {
		return clients;
	}

	public void addClient(Client client) {
		if (this.clients == null) {
			this.clients = new Client[] { client };
		} else {
			Client[] newClientArray = new Client[clients.length + 1];
			System.arraycopy(clients, 0, newClientArray, 0, clients.length);
			newClientArray[newClientArray.length - 1] = client;
			this.clients = newClientArray;
		}
	}

}
